package com.oa.gform.client.service.ibatis;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.oa.gform.client.service.IsRPCBean;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface GIBatisProxyServiceAsync<BeanType extends IsRPCBean<?>> {
	void load(BeanType beanInstance, AsyncCallback<BeanType>  SendCallback) ;

	void insert(IsRPCBean<?> beanInstance, AsyncCallback<BeanType> callback);

	void delete(IsRPCBean<?> beanInstance, AsyncCallback<Boolean> callback);

	void saveOrUpdate(IsRPCBean<?> beanInstance, AsyncCallback<BeanType> callback);

	void update(IsRPCBean<?> beanInstance, AsyncCallback<BeanType> callback);

}
